package com.deplume.ssm.service.impl.admin.home;

import com.deplume.ssm.mapper.home.IResumeHomeMapper;
import com.deplume.ssm.pojo.admin.Delivery;
import com.deplume.ssm.pojo.admin.DeliveryActivity;
import com.deplume.ssm.pojo.common.Pass;
import com.deplume.ssm.service.inface.admin.home.IResumeHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by libing on 2016/8/4.
 */
@Service("resumeHomeService")
public class ResumeServiceHomeImpl implements IResumeHomeService {

    @Autowired
    IResumeHomeMapper resumeHomeMapper;

    @Override
    public Delivery selectDeliveryByEmail(String email) throws Exception {
        return resumeHomeMapper.selectDeliveryByEmail(email);
    }

    @Override
    public Delivery checkResume(String email) throws Exception {
        return resumeHomeMapper.checkResume(email);
    }

    @Override
    public void insertResumeActivity(DeliveryActivity deliveryActivity) throws Exception {
         resumeHomeMapper.insertResumeActivity(deliveryActivity);
    }

    @Override
    public List<DeliveryActivity> returnResumeActivity(String email) throws Exception {
        return resumeHomeMapper.returnResumeActivity(email);
    }

    @Override
    public int returnNum(Pass pass) throws Exception {
        return resumeHomeMapper.returnNum(pass);
    }
}
